//
//  HWKeFuTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/10/16.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWKeFuTableViewCell.h"


@interface HWKeFuTableViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *icoIamge;
@property (weak, nonatomic) IBOutlet UILabel *miashuLabel;


@property (weak, nonatomic) IBOutlet UIView *baiseView;
@property (weak, nonatomic) IBOutlet UILabel *Left1Label;
@property (weak, nonatomic) IBOutlet UILabel *left2Label;
@property (weak, nonatomic) IBOutlet UILabel *left3Label;
@property (weak, nonatomic) IBOutlet UILabel *left4Label;

@property (weak, nonatomic) IBOutlet UILabel *righ1Label;
@property (weak, nonatomic) IBOutlet UILabel *right2Label;
@property (weak, nonatomic) IBOutlet UILabel *right3Label;
@property (weak, nonatomic) IBOutlet UILabel *right4Label;

@end

@implementation HWKeFuTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.baiseView.layer.cornerRadius = 6;
    self.baiseView.layer.masksToBounds = YES;
    self.baiseView.backgroundColor = [UIColor whiteColor];
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(HWKeFuModel *)model {
    
    
    _model = model;
    
    self.icoIamge.image = [UIImage imageNamed:model.icoStr];
    self.miashuLabel.text = model.nameStr;
    self.Left1Label.text = model.str1;
    self.left2Label.text = model.str2;
    self.left3Label.text = model.str3;
    self.left4Label.text = model.str4;
    
    if ([model.xianshiStr isEqualToString:@"1"]) {
        self.righ1Label.hidden = NO;
        self.right2Label.hidden = NO;
        self.right3Label.hidden = NO;
         self.right4Label.hidden = NO;
    } else {
        
        
        self.righ1Label.hidden = YES;
        self.right2Label.hidden = YES;
        self.right3Label.hidden = YES;
        self.right4Label.hidden = YES;
    }
    
    
}

@end
